package com.dyh.dao;

import com.dyh.pojo.Blog;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface BlogDao {

    int addBlog(Blog blog);

    int updateBlog(Blog blog);

    int deleteBlog(int id);

    List<Blog> queryBlogList();

    Blog queryBlogById(int id);


}
